import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitDataStruct = itf({
    payload: itf({
        brands: [itf(Object.assign({
            id: 'string',
            code: 'string',
            name: 'string',
        }))],
    })
});

const content = {
    id: 'string',
    dealerCode: 'string?|null',
    dealerName: 'string? | null',
    partSaleOrderCode: 'string? | null',
    pickingCode: 'string? | null',
    code: 'string? | null',
    length: 'number? | null',
    width: 'number? | null',
    height: 'number? | null',
    volume: 'number? | null',
    netWeight: 'number? | null',
    grossWeight: 'number? | null',
    status: 'number? | null',
    containerNo: 'string? |null',
    createTime: 'string? | null',
    remark: 'string? | null',
    partCode: 'string? | null',
    partName: 'string? | null',
    oldPartCode: 'string? | null',
    oldPartName: 'string? | null',
    currency: 'number? | null',
    quantity: 'number? | null',
    price: 'number? | null',
    totalAmount: 'number? | null',
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign(content))]
    })
});

